<?php
	/*
	moldIE - Encourage Internet Explorer (IE) 5 and 6 website visitors to upgrade
	Copyright (C) 2010 Andrew Logue, BigFrog Computing Inc.

	This file is part of moldIE.

	moldIE is free software; you can redistribute it and/or modify it under 
	the terms of the GNU General Public License as published by the Free Software 
	Foundation; either version 3 of the License, or (at your option) any later 
	version.

	moldIE is distributed in the hope that it will be useful, but WITHOUT ANY 
	WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
	PARTICULAR PURPOSE.  See the GNU General Public License for more details.

	You should have received a copy of the GNU General Public License along with 
	this program; if not, write to the Free Software Foundation, Inc., 51 Franklin 
	Street, Fifth Floor, Boston, MA 02110-1301  USA
	*/
	$moldIE_sitename = "BigFrog Computing"; /* <---- change to your site name */
	$moldIE_cur_ie = "8";
	$moldIE_cur_ff = "3";
	$moldIE_cur_sa = "4";
	$moldIE_cur_op = "10";
	$moldIE_cur_ch = "2";
	$moldIE_url_ie = "http://www.microsoft.com/windows/Internet-explorer/default.aspx";
	$moldIE_url_ff = "http://www.mozilla.com/firefox";
	$moldIE_url_sa = "http://www.apple.com/safari/download";
	$moldIE_url_op = "http://www.opera.com/download";
	$moldIE_url_ch = "http://www.google.com/chrome";

	if($moldIE == 6) { $moldIE_age = date("Y") - 2001; }
	if($moldIE == 5) { $moldIE_age = date("Y") - 1999; }
?>
	<!--[if lt IE 7]>
	<noscript><style type="text/css" media="all">@import "/moldIE/moldIE-ns.css";</style></noscript>
	<script type="text/javascript">document.write('<style type="text/css" media="all">@import "/moldIE/moldIE.css";</style>');</script>
	<div id="moldIE-fade" class="moldIE-black"></div>
	<div class="moldIE-middle">
		<div id="moldIE-light" class="moldIE-content">
			<div class="moldIE-closecontainer">
				<a href="javascript:void(0)" onclick="document.getElementById('moldIE-light').style.display='none';document.getElementById('moldIE-fade').style.display='none'">
					<img class="moldIE-noborder" src="/moldIE/xclose.gif" height="30" width="30" alt="Close button" />
				</a>
			</div>
			<div class="moldIE-mainmsgcontainer">
				<p class="moldIE-mainmsg">Your Web Browser is Outdated</p>
				<p class="moldIE-easymsg">Updating to a modern browser is easy and free!</p>
			</div>
			<div class="moldIE-longmsg">
				<?php echo $moldIE_sitename;?> recommends updating your web browser as the easiest, most effective way to protect yourself from Internet threats.  Click a button below to begin updating.
			</div>
			<div class="moldIE-lcolumn">
				<p class="moldIE-ybox">Why should I update?</p>
				<div class="moldIE-lreason">Web sites load faster</div>
				<div class="moldIE-ldescript">often twice as fast as this older browser</div>
				<div class="moldIE-lreason">Safer browsing</div>
				<div class="moldIE-ldescript">with better security and phising protection</div>
				<div class="moldIE-lreason">Tabbed browsing</div>
				<div class="moldIE-ldescript">browse multiple sites in one window</div>
				<div class="moldIE-lreason">Web sites display correctly</div>
				<div class="moldIE-ldescript">with better web standards compliance</div>
			</div>
			<div class="moldIE-rcolumn">
				<div class="moldIE-gradbg">
					<div class="moldIE-qbox">What is a web browser?</div>
					It is the program you are using to read this web page.
					<div class="moldIE-qbox">Why am I seeing this popup?</div>
					Our website has detected that you are using Internet Explorer version <?php echo $moldIE; ?>.  This website will not display correctly in your <?php echo $moldIE_age;?> year old browser.
					<div class="moldIE-qbox">What do I do now?</div>
					&#149; Update your IE<?php echo $moldIE; ?> to IE<?php echo $moldIE_cur_ie; ?> for improved security<br />
					&#149; Don't use the new IE<?php echo $moldIE_cur_ie; ?> but don't uninstall it either<br />
					&#149; Use Firefox, Opera, or Safari as your new browser
				</div>
			</div>
			<div class="moldIE-footer">
				<span class="moldIE-uplink">
					<a href="<?php echo $moldIE_url_ie;?>" target="_blank"><img class="moldIE-noborder" src="/moldIE/ie.gif" width="70" height="70" alt="Internet Explorer <?php echo $moldIE_cur_ie;?>+" /></a>
					<a class="moldIE-upcap moldIE-link" href="<?php echo $moldIE_url_ie;?>" target="_blank">Internet Explorer <?php echo $moldIE_cur_ie;?>+</a>
				</span>
				<span class="moldIE-uplink">
					<a href="<?php echo $moldIE_url_ff;?>" target="_blank"><img class="moldIE-noborder" src="/moldIE/firefox.gif" width="70" height="70" alt="Firefox <?php echo $moldIE_cur_ff;?>+" /></a>
					<a class="moldIE-upcap moldIE-link" href="<?php echo $moldIE_url_ff;?>" target="_blank">Mozilla Firefox <?php echo $moldIE_cur_ff;?>+</a>
				</span>
				<span class="moldIE-uplink">
					<a href="<?php echo $moldIE_url_sa;?>" target="_blank"><img class="moldIE-noborder" src="/moldIE/safari.gif" width="70" height="70" alt="Safari <?php echo $moldIE_cur_sa;?>+" /></a>
					<a class="moldIE-upcap moldIE-link" href="<?php echo $moldIE_url_sa;?>" target="_blank">Apple Safari <?php echo $moldIE_cur_sa;?>+</a>
				</span>
				<span class="moldIE-uplink">
					<a href="<?php echo $moldIE_url_op;?>" target="_blank"><img class="moldIE-noborder" src="/moldIE/opera.gif" width="70" height="70" alt="Opera <?php echo $moldIE_cur_op;?>+" /></a>
					<a class="moldIE-upcap moldIE-link" href="<?php echo $moldIE_url_op;?>" target="_blank">Opera Opera <?php echo $moldIE_cur_op;?>+</a>
				</span>
				<span class="moldIE-uplink">
					<a href="<?php echo $moldIE_url_ch;?>" target="_blank"><img class="moldIE-noborder" src="/moldIE/chrome.gif" width="70" height="70" alt="Chrome <?php echo $moldIE_cur_ch;?>+" /></a>
					<a class="moldIE-upcap moldIE-link" href="<?php echo $moldIE_url_ch;?>" target="_blank">Google Chrome <?php echo $moldIE_cur_ch;?>+</a>
				</span>
			</div>
		</div>
	</div>
	<script>document.getElementById('moldIE-light').style.display='block';document.getElementById('moldIE-fade').style.display='block'</script>
	<![endif]-->

